import React from 'react'
import {withRouter} from 'react-router-dom'
class Header extends React.Component{
	linkEvent=()=>{
		this.props.history.push('/about')
	}
	render(){
		return (
			<div className="jumbotron jumbotron-fluid">
			  <div className="container">
			    <h1 className="display-4">Fluid jumbotron</h1>
			    <button onClick={this.linkEvent} className='btn btn-primary'>widthRouter跳转</button>
			  </div>
			</div>
		)
	}
}

export default withRouter(Header)